package com.ruiya.staging.goods.core.mapper;

import java.util.Date;

public class DateMapper {

    public long asLong(Date date){
        return date.getTime();
    }

    public Date asDate(long date){
        return new Date(date);
    }

}
